package com.example.spareparts.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import com.example.spareparts.entity.InventoryAdjustments;
import com.example.spareparts.repository.InventoryAdjustmentsRepository;

@Service
public class InventoryAdjustmentsService {
    @Autowired
    private InventoryAdjustmentsRepository inventoryAdjustmentsRepository;
    public List<InventoryAdjustments> findAllInventoryAdjustments() {
        return inventoryAdjustmentsRepository.findAllInventoryAdjustments();
    }
    public void insertInventoryAdjustments(InventoryAdjustments inventoryAdjustments) {
        inventoryAdjustmentsRepository.insertInventoryAdjustments(inventoryAdjustments);
    }
    public void updateInventoryAdjustments(InventoryAdjustments inventoryAdjustments) {
        inventoryAdjustmentsRepository.updateInventoryAdjustments(inventoryAdjustments);
    }
    public void deleteInventoryAdjustments(Long adjustmentid) {
        inventoryAdjustmentsRepository.deleteInventoryAdjustments(adjustmentid);
    }
    public InventoryAdjustments findInventoryAdjustmentsById(Long adjustmentid) {
        return inventoryAdjustmentsRepository.findInventoryAdjustmentsById(adjustmentid);
    }

    public List<InventoryAdjustments> findInventoryAdjustmentsBySparePartId(Long sparepartid) {
        return inventoryAdjustmentsRepository.findInventoryAdjustmentsBySparePartId(sparepartid);
    }
}
